<%@ page import="com.edeweiss.community.domain.Community" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2020/3/16
  Time: 19:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" >
    <title>荣誉墙</title>
    <link rel="stylesheet" type="text/css"  href="${pageContext.request.contextPath}/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css">
    <link rel="stylesheet" type="text/css" href="themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="themes/icon.css">
    <link rel="stylesheet" type="text/css" href="css/honorWall.css">
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.easyui.min.js"></script>
</head>
<body>
<nav id="menu" class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
            <a class="navbar-brand page-scroll" href="index.jsp">西安文理学院社团管理系统</a>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="index.jsp">首页</a></li>
                <li><a href="${pageContext.request.contextPath}/CommunityServlet?method=findCommunityCategory">社团</a></li>
                <li><a href="${pageContext.request.contextPath}/IndexServlet?method=findHonorWall">荣誉墙</a></li>
                <li><a href="${pageContext.request.contextPath}/IndexServlet?method=findHallOfFame">名人堂</a></li>
                <li><a href="${pageContext.request.contextPath}/Report.jsp">匿名投诉</a></li>
                <li><a href="${pageContext.request.contextPath}/loginForm.jsp">登录</a></li>
                <li><a href="${pageContext.request.contextPath}/StudentServlet?method=findFactoryId">注册</a></li>
                <c:if test="${ not empty student}">
                    <li><a href="${pageContext.request.contextPath}/person/personInfo.jsp">我的</a></li>
                </c:if>
            </ul>
        </div>
    </div>
</nav>
<div class="body clearfix">
    <h1 class="header" >荣誉墙</h1>
    <section id="blog-area">
        <div class="container">
            <div class="row blog-wrap">
                <c:if test="${not empty wall}">
                        <%
                            List<Community> walls = (List<Community>) request.getSession().getAttribute("wall");
                            for(Community c : walls){
                                String path = c.getCimage().split("&")[0];
                                %>
                        <div class="col-md-4">
                        <div class="blog-single"></div>
                        <img src="${pageContext.request.contextPath}/img/<%=path%>" alt="荣誉墙" class="honorimg">
                        <div class="post-content">
                            <h3>社团名称：<%=c.getCname()%></h3>
                            <h3>社团创建时间：<%=c.getCtime()%></h3>
                            <h2>社团介绍：</h2>
                            <p><%=c.getCintroduce()%></p>
                        </div>
                    </div>
                    <%
                            }
                        %>
                </c:if>
            </div>
        </div>
    </section>
    <div style="text-align: center;clear: both;">
        <br />
        Copyright © 雪绒花小组
    </div>
</div>
</body>
</html>
